MAINTAINERCLEANFILES = Makefile.in e_modules-ei8k.spec

#SUBDIRS = po

EDJE_CC = @edje_cc@
EDJE_FLAGS = -v \
-id $(top_srcdir) \
-fd $(top_srcdir)

# data files for the module
filesdir = $(datadir)
files_DATA = \
ei8k.edj \
module.edj \
module.desktop \
ei8k.png

EXTRA_DIST = $(files_DATA) \
				ei8k.edc \
				VeraMono.ttf \
				e_modules-ei8k.spec \
				e_modules-ei8k.spec.in


# the module .so file
INCLUDES = -I. \
	 -I$(top_srcdir) \
	 -I$(includedir) \
	 @e_cflags@

pkgdir                 = $(datadir)/$(MODULE_ARCH)
pkg_LTLIBRARIES        = module.la
module_la_SOURCES      = e_mod_main.c \
		       e_mod_main.h \
		       e_mod_config.c

module_la_LIBADD       = @e_libs@ -lm
module_la_LDFLAGS      = -module -avoid-version
module_la_DEPENDENCIES = $(top_builddir)/config.h

%.edj:  %.edc
	$(EDJE_CC) $(EDJE_FLAGS) $< $@

clean-local:
	 rm -rf ei8k.edj *~
uninstall:
	rm -rf $(datadir)

